﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Profile.aspx.cs" Inherits="MatchWeb.Account.Profile" MasterPageFile="~/MasterPage/UserCenter.Master" %>
<asp:Content ContentPlaceHolderID="head" runat="server">
    
    <title>个人资料</title>
    
</asp:Content>
<asp:Content ContentPlaceHolderID="main" runat="server">
    <asp:Literal ID="ltrMsg" runat="server"></asp:Literal>
    <form id="signupForm" action="Profile.aspx" method="post" runat="server">
    <div  class="mainitem">
        <label>
            昵称：</label><input type="text" id="nickname" class="input1" name="nickname" value="<%=userInfo.NickName %>" /></div>
    <div class="mainitem">
        <label>
            真实姓名：</label><input type="text" id="realname" class="input1" name="realname" value="<%=realName %>" />
     
    </div>
    <div class="mainitem">
       <label>
            性别：</label>
      
            <input type="radio" class="gender" <%=radioGender1 %> value="男" name="gender" id="nan" /> <label for="nan" style="width:20px;">男</label>
       
            <input type="radio" class="gender"  <%=radioGender0 %> value="女" name="gender" id="nv" /><label for="nv" style="width:20px;">女</label>
    </div>
    <div class="mainitem">
        <label>
            出生日期：</label><input type="text" id="birthday" name="birthday" class="date"  value="<%=birthday %>" /></div>
    <div class="mainitem">
        <label>
            称谓修改：</label><select id="designationName" name="designationName">
                <option value="0">科举称谓</option>
                <option value="1" <%=wuxiaSelected %>>武侠称谓</option>
            </select><span style="font-size: 12px">(限1对1软件)</span></div>
    <div class="mainitem" style="height:185px;">
        <label>个人签名：</label>
        <textarea cols="67" rows="10" maxlength="150" class="textarea" id="desc" name="desc"
            style="height: 150px; width:400px; resize: none;"><%=desc %></textarea></div>
    <div class="mainitem">
        <input class="queding" type="submit" value="保  存" />
    </div>
    </form>
    <script type="text/javascript" language="javascript">
        $().ready(function () {
            $("#signupForm").validate({
                rules: {
                    nickname: {
                        required: true,
                        maxlength: 8
                    },
                    realname: {
                        required: true
                    },
                    desc:{
                        maxlength: 150
                    }
                },
                messages: {
                    nickname: {
                        required: "请输入昵称",
                        maxlength: jQuery.format("昵称不能大于{0}个字符")
                    },
                    realname: {
                        required: "请输入真实姓名"
                    },
                    desc:{
                        maxlength: "个人说明不能大于150个字符。"
                    }

                },
                errorPlacement: function (error, element) {
                    error.insertAfter(element);
                },
                submitHandler: function (form) {
                    form.submit();
                }
            });
        });
    </script>
    <script src="../Scripts/jquery.jSelectDate.js" type="text/javascript"></script>
    <script type="text/javascript">
        $("body").ready(function () {
            //应用方法
            $("input.date").jSelectDate({
                css: "date",
                yearBeign: 1995,
                disabled: false,
                showLabel: false
            });
        })
        $(this).jSelectDate
    </script>
</asp:Content>
